Optimal. Leaf size=42 \[ -\frac {A}{b x}+\frac {(b B-A c) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {b}}\right )}{b^{3/2} \sqrt {c}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {1607, 464, 211}
\begin {gather*} \frac {(b B-A c) \text {ArcTan}\left (\frac {\sqrt {c} x}{\sqrt {b}}\right )}{b^{3/2} \sqrt {c}}-\frac {A}{b x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 464
Rule 1607
Rubi steps
\begin {align*} \int \frac {A+B x^2}{b x^2+c x^4} \, dx &=\int \frac {A+B x^2}{x^2 \left (b+c x^2\right )} \, dx\\ &=-\frac {A}{b x}-\frac {(-b B+A c) \int \frac {1}{b+c x^2} \, dx}{b}\\ &=-\frac {A}{b x}+\frac {(b B-A c) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {b}}\right )}{b^{3/2} \sqrt {c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 42, normalized size = 1.00 \begin {gather*} -\frac {A}{b x}+\frac {(b B-A c) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {b}}\right )}{b^{3/2} \sqrt {c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.41, size = 37, normalized size = 0.88
method | result | size |
default | \(\frac {\left (-A c +B b \right ) \arctan \left (\frac {c x}{\sqrt {b c}}\right )}{b \sqrt {b c}}-\frac {A}{b x}\) | \(37\) |
risch | \(-\frac {A}{b x}+\frac {\left (\munderset {\textit {\_R} =\RootOf \left (b^{3} c \,\textit {\_Z}^{2}+A^{2} c^{2}-2 A B b c +B^{2} b^{2}\right )}{\sum }\textit {\_R} \ln \left (\left (3 \textit {\_R}^{2} b^{3} c +2 A^{2} c^{2}-4 A B b c +2 B^{2} b^{2}\right ) x +\left (A \,b^{2} c -B \,b^{3}\right ) \textit {\_R} \right )\right )}{2}\) | \(99\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 36, normalized size = 0.86 \begin {gather*} \frac {{\left (B b - A c\right )} \arctan \left (\frac {c x}{\sqrt {b c}}\right )}{\sqrt {b c} b} - \frac {A}{b x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.03, size = 105, normalized size = 2.50 \begin {gather*} \left [\frac {{\left (B b - A c\right )} \sqrt {-b c} x \log \left (\frac {c x^{2} + 2 \, \sqrt {-b c} x - b}{c x^{2} + b}\right ) - 2 \, A b c}{2 \, b^{2} c x}, \frac {{\left (B b - A c\right )} \sqrt {b c} x \arctan \left (\frac {\sqrt {b c} x}{b}\right ) - A b c}{b^{2} c x}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 82 vs.
\(2 (34) = 68\).
time = 0.16, size = 82, normalized size = 1.95 \begin {gather*} - \frac {A}{b x} - \frac {\sqrt {- \frac {1}{b^{3} c}} \left (- A c + B b\right ) \log {\left (- b^{2} \sqrt {- \frac {1}{b^{3} c}} + x \right )}}{2} + \frac {\sqrt {- \frac {1}{b^{3} c}} \left (- A c + B b\right ) \log {\left (b^{2} \sqrt {- \frac {1}{b^{3} c}} + x \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.64, size = 36, normalized size = 0.86 \begin {gather*} \frac {{\left (B b - A c\right )} \arctan \left (\frac {c x}{\sqrt {b c}}\right )}{\sqrt {b c} b} - \frac {A}{b x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.09, size = 35, normalized size = 0.83 \begin {gather*} -\frac {A}{b\,x}-\frac {\mathrm {atan}\left (\frac {\sqrt {c}\,x}{\sqrt {b}}\right )\,\left (A\,c-B\,b\right )}{b^{3/2}\,\sqrt {c}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________